<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="toUrl"></web-view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			toUrl: '',
			webviewStyles: {
				progress: {
					color: '#FF3333'
				}
			}
		};
	},
	onLoad(options) {
		this.toUrl = options.toUrl; // 字符串转对象
	},
	methods: {}
};
</script>

<style></style>
